import { View } from "../../../mvc/core/View";
import { ILayOut } from "../../../../modules/interfaces/ILayOut";
import { LayerManager } from "../../manager/LayerManager";
import { BaseProgressBar } from "../common/BaseProgressBar";
import { ImagesConst } from "../../resource/ImagesConst";
type int = number;
//class CrazyFishProgressView
    
    export  class CrazyFishProgressView extends View implements ILayOut
    {
        constructor()
        {
            super();
            this.layer = LayerManager.uiLayer;
            this.createChildren();
            this.resetPosition();
            return;
        }

        /* internal  */createChildren(): void
        {
            this._progressBar = new BaseProgressBar(ImagesConst.MountProgressBarBg);
            this._progressBar.progressBarClass = ImagesConst.MountProgressBar;
            this._progressBar.setValue(0, 100);
            this._progressBar.setProgressPosition(30, 26);
            this._progressBar.setLabelPosition(60, 4);
            this.addChild(this._progressBar);
            return;
        }

        public updateCrazyNum(arg1: int, arg2: int=100): void
        {
            this._progressBar.setValue(arg1, arg2);
            return;
        }

        public resetPosition(): void
        {
            this.x = 300;
            this.y = 100;
            return;
        }

        /* internal */ /* var */_progressBar: BaseProgressBar;
    }
